import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import {createHtmlPlugin} from 'vite-plugin-html'

export default defineConfig({
    plugins: [vue(),
      createHtmlPlugin({
        inject: {
            data: {
                title: '智慧车辆运营Vite版'
            }
        }
      })
    ],
    resolve: {
      alias: {
        '@': path.resolve(__dirname, './src'), // 保持原有路径别名
      }
    }
})
